package com.cloudlead.fleetAction;

import com.cloudlead.common.lang.BusinessModule;

/**
 * BusinessModules is a Codegen businsess modules type
 */
public enum BusinessModules implements BusinessModule {
    BaseFl("车队模块",null),
    DockManagement("码头管理",BaseFl),
    BankAccountEdit("账号管理",BaseFl),
    DoorManagement("门店管理",BaseFl),
    BaseOilCardEdit("油卡管理",BaseFl),
    FuelRecharge("油卡充值",BaseFl),
    FuelRegister("油卡领用",BaseFl),
    BaseFleetEdit("车队管理",BaseFl),
    SendCarMa("派车管理",BaseFl),
    PlacePriceEdit("车队报价管理",BaseFl),
    DriverManagement("驾驶员管理",BaseFl),
    FleetOrderGL("订单管理",BaseFl),
    CarGL("车辆管理",BaseFl),
    FleetDoor("车队门店管理",BaseFl),
    FleetCost("车队费用管理",BaseFl),
    FleetCharge("车队费用代码",BaseFl),
    CustomerBill("客户账单",BaseFl),
    FleetCustomer("车队客户管理",BaseFl);
    BusinessModules(String label, BusinessModule parent) {
    	this.label = label;
    	this.parent = parent;
    }
    
    private String label;

    private BusinessModule parent;

    public String getName() {
        return this.name();
    }

    public String getLabel() {
        return label;
    }

    public BusinessModule getParent() {
        return parent;
    }

    public String getFullName() {
        return null == this.parent ? this.name() : this.parent.getFullName()+ "-" + this.getName();
    }

    public int getOrdinal() {
        return this.ordinal();
    }

}

